/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Ex7_ex1;

import Ex6_CustomerAccount.Banking.*;



/**
 *
 * @author Root
 */
public class Bank {

    public  Customer[] customers;
    public  int numberof_customer=0;
    private static Bank bankInstance=new Bank();

    private  Bank() {

        customers=new Customer[10];
    }





    public Customer[] getCustomers() {
        return customers;
    }

    public void addCustomers(Customer cust) {
        Customer cus=new Customer(cust.firtname, cust.lastname);
        System.out.println("Creating the customer "+cust.firtname+" "+ cust.lastname);
        customers[numberof_customer]=cus;
        numberof_customer++;
    }

    

    public int getNumberof_customer() {
        return numberof_customer;
    }

    public void setNumberof_customer(int numberof_customer) {
        this.numberof_customer = numberof_customer;
    }

    public static Bank getBank() {
        return bankInstance;
    }



}
